package com.xm.web.consts;

import lombok.Getter;

/**
 * 枚举
 *
 * @author yousj
 * @version 1.0.0
 * @since 2021/8/20 9:44
 */
@Getter
public enum MagicNumEnum {

    ROOT(-1, "根"),

    MAX_DEEP(4, "最大递归深度"),

    /**
     * 状态
     */
    ON(1, "开启"),
    OFF(0, "关闭"),

    /**
     * 权限
     */
    PERMISSION_MENU(0, "菜单"),
    PERMISSION_MENU_ALL(1, "菜单下所有权限"),
    PERMISSION_BUTTON(2, "按钮"),
    ;

    private Integer code;

    private String description;

    MagicNumEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

}
